package com.budwk.app.sqfw.vo;

import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "工单信息(包含服务记录)")
public class WorkOrderWithServiceRecordVO {

    @ApiModelProperty(description = "工单id")
    private String id;

    @ApiModelProperty(description = "用户姓名")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String customer_name;

    @ApiModelProperty(description = "用户手机号")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String customer_phone;

    @ApiModelProperty(description = "通话对象")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String connect_obj;

    @ApiModelProperty(description = "用户地址")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String customer_address;

    @ApiModelProperty(description = "录音文件")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String recording_file;

    @ApiModelProperty(description = "录音文本")
    @ColDefine(type = ColType.TEXT)
    private String recording_text;

    @ApiModelProperty(description = "事件类型")
    private String type;

    @ApiModelProperty(description = "access_token")
    private String customer_need;

    @ApiModelProperty(description = "接办人姓名")
    private String service_name;

    @ApiModelProperty(description = "接办人手机")
    private String service_phone;

    @ApiModelProperty(description = "抄送人姓名")
    private String copy_name;

    @ApiModelProperty(description = "抄送人手机")
    private String copy_phone;

    @ApiModelProperty(description = "接待时间")
    private Date receive_time;

    @ApiModelProperty(description = "完成时间")
    private Date finish_time;

    @ApiModelProperty(description = "处理结果")
    private String handle_result;

    @ApiModelProperty(description = "处理详情")
    private String handle_detail;

    @ApiModelProperty(description = "腾讯云处理taskid")
    private String taskId;

    @ApiModelProperty(description = "电话接通时间")
    private Date connect_time;

    @ApiModelProperty(description = "电话结束时间")
    private Date end_time;

    @ApiModelProperty(description = "通话时长")
    private Long duration;


    @ApiModelProperty(description ="标签")
    private String label ;


    @ApiModelProperty(description ="备注")
    private String remarks ;

    @ApiModelProperty(description ="前端唯一标识")
    private String app_type ;

    @ApiModelProperty(description ="用户id")
    private String user_id ;

    @ApiModelProperty(description ="完成状态")
    private String finishStatus;

    private String dfxyStatus;

    private String androidFile;

    @ApiModelProperty(description = "服务记录创建时间")
    private Date createdAt;

    private String createdby;

    //--------------------------------------------------------------
    //下面是工单的相关的信息
    //--------------------------------------------------------------
    private String workOrderId;

    private String sqfw_id;

    private String user_name;

    private String wk_status;

    private String wk_grade;

    private String wk_priority;

    private Date complete_time;

    private String remark;

    private String workorder_user_id;

    private String fromUserId;

    private String toUserId;

    private String popoMid;

    private String latestFlowRemark;

}
